Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement for comparision against fn #59798

Merged
merged 5 commits into from
Apr 14, 2019
Merged

Conversation

rchaser53
Copy link
Contributor

I try to add error message.
related: #59488

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @petrochenkov (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 8, 2019
@petrochenkov
Copy link
Contributor

r? @estebank

src/librustc_typeck/check/op.rs Outdated Show resolved Hide resolved
};

if self.lookup_op_method(fn_sig.output(),
&[other_ty],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could have another code branch for the case where both ty and other_ty are fns, so that you can suggest calling both of them, if their return types are the same.

src/librustc_typeck/check/op.rs Outdated Show resolved Hide resolved
src/librustc_typeck/check/op.rs Outdated Show resolved Hide resolved
@rchaser53
Copy link
Contributor Author

I reflected the estebank's review.

@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Apr 12, 2019

📌 Commit d01ac0d has been approved by estebank

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 12, 2019
@bors
Copy link
Contributor

bors commented Apr 14, 2019

⌛ Testing commit d01ac0d with merge 464473a...

bors added a commit that referenced this pull request Apr 14, 2019
Improvement for comparision against fn

I try to add error message.
related: #59488
@bors
Copy link
Contributor

bors commented Apr 14, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: estebank
Pushing 464473a to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 14, 2019
@bors bors merged commit d01ac0d into rust-lang:master Apr 14, 2019
@rchaser53 rchaser53 deleted the issue-59488 branch April 14, 2019 08:59
bors added a commit that referenced this pull request Apr 19, 2019
avoid type-check body of DefId

fix: #60049
related: PR #59798
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants